package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.PageParam;

import java.util.List;

public interface CategoryService {

    /*更新分类*/
    int update(Category category);

    /*删除分类*/
    int delete(long categoryId);

    /*分页查询*/
    IPage<Category> findPage(PageParam pageParam);

    /*添加分类*/
    int add(Category category);

    /**
     * wurenfeng
     */
    Category findById(Long id);

    List<Category> ListByType(Integer type);


}
